class Course < ActiveRecord::Base
  belongs_to  :user
  has_many  :items
  has_one :course_image, :dependent => :destroy
  has_many  :user_courss
  
  acts_as_taggable

  def self.get_single_course_and_info(course_id)
    Course.find course_id
    #    Course.find course_id,:include => [:user, :course_image, :category]
  end
end
